//
//  LSZInformationDirectoryManager.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/8/20.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZInformationDirectoryManager.h"

@implementation LSZInformationDirectoryManager
-(id)initWithInformationDirectory :(NSArray *)array
{
    self = [super init];
    if (self) {
        self.mutMgArray  = [[NSMutableArray alloc]init];
        self.mutNameArray = [[NSMutableArray alloc]init];
        NSMutableArray * arrayMut = [[NSMutableArray alloc]init];
        NSMutableArray * arrayName = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in array) {
            LSZInformationDirectoryMg * mg = [[LSZInformationDirectoryMg alloc]init];
            mg.coverUrl = NullStringjudgment(NSStr(diction[@"coverUrl"]));
            mg.id_id = NullStringjudgment(NSStr(diction[@"id"]));
            mg.catalogId = NullStringjudgment(NSStr(diction[@"catalogId"]));
            mg.name = NullStringjudgment(NSStr(diction[@"name"]));
            mg.sortIndex = NullStringjudgment(NSStr(diction[@"sortIndex"]));
            [arrayMut addObject:mg];
            
            [arrayName addObject:mg.name];
        }
        self.mutMgArray = arrayMut;
        self.mutNameArray = arrayName;
    }
    return self;
}
@end

@implementation LSZInformationDirectoryMg
@end

